package umage.figures;

import static org.jhotdraw.draw.AttributeKeys.STROKE_DASHES;

import org.jhotdraw.draw.ArrowTip;
import org.jhotdraw.draw.AttributeKeys;
import org.jhotdraw.draw.ConnectionTool;
import org.jhotdraw.draw.LineConnectionFigure;

@FigureInfo(name = "Implements Arrow", icon = "ImplementsArrow.png", toolbar = "Arrows", toolbarPriority = 1, tool = ConnectionTool.class)
public class ImplementsArrow extends LineConnectionFigure {

	public ImplementsArrow() {
		super();
		setAttribute(AttributeKeys.END_DECORATION, new ArrowTip(0.35, 12, 11.3, false, true, false));
		setAttributeEnabled(STROKE_DASHES, true);
		double[] dashes = { 4d, 2d };
		STROKE_DASHES.set(this, dashes);
	}
}
